##########################################################
# 10-Dars
C = 'Salom, dunyo!'
print(len(C))
print(C.capitalize())
C1 = C.capitalize()
print(C, C1)
print(C.center(25))
print(C.center(28, '*'))
print(C.count('o'))
print(C.count('d'))
print(C.count('a', 0, 9))
print(C.find('n'))
print(C.replace('a', 'y'))
print(C.split(','))
print(C.isdigit())
S = 'uhdr'
print(S.isalpha())

#################################################################################################
# 11-Dars

ISM = 'Og`abek'
YOSH = 11
YIL = 2011; OY = 'may'; KUN = 29
print('Salom, mening ismim ' + ISM + '. ' + 'Men ' + str(YOSH) + ' daman.')
print('Men ' + str(YIL) + '-yil ' + str(KUN) + '-' + OY + 'da tug`ilganman.')
print('Men %(a)d yoshdaman. Men %(b)d-yil %(z)d-%(OY)sda tug`ilganman. ' %{'a':YOSH, 'b':YIL, 'z':KUN, 'oy':OY})
print('Mening ismim %s. Men %d yoshdaman' %(ISM, YOSH))
print('Mening ismim %s. Men %d yoshdaman' %('Og`abek', 112))
print('Narsa: %s. Narxi: %0.2f$' %('daftar', 5.1))
print('Narsa: {}. Narxi: {}$' .format('daftar', 5.1))
print('Narsa: {1}. Narxi: {0}$' .format('daftar', 5.1))
print('Narsa: {a}. Narxi: {b}$' .format(a = ISM, b = YOSH))
print(f'Narsa: {ISM}. Narxi: {YOSH+2}$')
print(f'Narsa: {ISM} pomidor. Narxi: {YOSH+-8}$')
print(f'Narsa: {ISM}. Narxi: {YOSH+2}$')
print(f'5 + 2 = {5 + 2}')
print('10 + 20 = %d' %(10 + 20))
print('Men {}man.' .format('pamidor'))
print('{} {} yoshda.' .format('Shamshod', 9))
print('{} {} kg.' .format('Qo`y', 46))
print(28/5)

############################################################################################
# 12-Dars

print(4 == 3)
print(4!=3)
print(4>3)
print(4<3)
print(8>=9)
print(8<=9)
print('& belgisi')
print(1&0)
print(1&1)
print(0&1)
print(0&0)
print('| belgisi')
print(1|0)
print(1|1)
print(0|1)
print(0|0)
print('^ faqat yoki')
print(1^0) 
print(1^1)
print(0^1)
print(0^0)
